*********************************************************************************
*********************************************************************************
***Replication for "Oust the Leader, Keep the Regime?" (Brooks and White 2021)***
*********************************************************************************
*********************************************************************************

clear all

*use Aksoy, Carter, and Wright's replication data (2015, World Politics) combined with data on civil-military relations

use Brooks_White_Security_Studies_replication_coups.dta

*Table 1

ta anycoupsucc_fin reshuffleatt_fin if anycoupatt_fin==1, col chi

clear all 

*load country-year data for Table 3

use Brooks_White_Security_Studies_replication.dta

set more off

sort ccode year


*Table 3

ta anycoupatt_fin l_threecats, col chi

ta anycoupsucc_fin l_threecats, col chi

*Table 4

clear all

use Brooks_White_Security_Studies_replication_coups.dta

*distribution of reshuffle/regime change attempts by coup (when reshuffleatt_fin==0 it is rechangeatt_fin==1)
ta reshuffleatt_fin l_threecats if anycoupatt_fin==1, col chi

*distribution of reshuffle/regime change successes by coup (when reshufflesucc_fin==0 it is rechangesucc_fin==1)

ta reshufflesucc_fin l_threecats if anycoupsucc_fin==1, col chi


*APPENDIX
*fourcats approach (separating out juntas)
clear all 

use Brooks_White_Security_Studies_replication.dta

*Table A1:

ta anycoupatt_fin l_fourcats, col chi

ta anycoupsucc_fin l_fourcats, col chi

clear all

use Brooks_White_Security_Studies_replication_coups.dta

*Table A2:

ta reshuffleatt_fin l_fourcats if anycoupatt_fin==1, col chi

ta reshufflesucc_fin l_fourcats if anycoupsucc_fin==1, col chi


